<?php
/**
	Author: Rick Allen
	Email: allenr@msoe.edu
	Created: March 15, 2009
*/
if(defined('HEADER_INCLUDED'))
	return;
define('HEADER_INCLUDED',1);

//-----------------------------------------
// Include the fonciguration file
//-----------------------------------------
require '$config.php';

//-----------------------------------------
// Start the website session
//-----------------------------------------
session_start();

//-----------------------------------------
// Goto the root level directory to make including things easier
//-----------------------------------------
//chdir("{$_SERVER['DOCUMENT_ROOT']}{$CONFIG['BASE_DIR']}");

//-----------------------------------------
//Include and setup the Database object
//-----------------------------------------
require 'Database.class.php';

$DB = new Database($CONFIG['DB_HOST'], $CONFIG['DB_USERNAME'], $CONFIG['DB_PASSWORD'], $CONFIG['DB_DATABASE']);
?>